﻿using RndMaterialDisposalService.Models;
using RndMaterialDisposalService.Models.RequestModel;

namespace RndMaterialDisposalService.Services.Interface
{
    public interface ICapitalRepairReportFormService
    {
        /// <summary>
        /// 返回资产维修电子流报表数据（带分页）
        /// </summary>
        /// <param name="repair"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        List<CapitalRepairReportFormModel> GetCapitalRepairReportFormPageList(CapitalRepairReportConditionModel repair);

        /// <summary>
        ///返回资产维修电子流报表主数据
        /// </summary>
        /// <param name="repair"></param>
        /// <returns></returns>
        List<CapitalRepairReportFormModel> GetCapitalRepairReportFormData(CapitalRepairReportConditionModel repair);

        /// <summary>
        /// 新增资产维修电子流业务数据
        /// </summary>
        /// <param name="repair"></param>
        /// <returns></returns>
        Task<int> AddCapitalRepairBusinessData(CapitalRepairBusinessDataModel repair);

        /// <summary>
        /// 修改资产维修电子流业务数据
        /// </summary>
        /// <param name="repair"></param>
        /// <returns></returns>
        Task<int> EditCapitalRepairBusinessData(CapitalRepairBusinessDataModel repair);

        /// <summary>
        /// 根据流程实例ID查询资产维修电子流信息
        /// </summary>
        /// <param name="ProcInstId"></param>
        /// <returns></returns>
        Task<CapitalRepairBusinessDataModel> GetCapitalRepairBusinessDataFind(string ProcInstId);
    }
}
